package modeladmin

import "ia/common/model"

type AdminRole struct {
	model.Model
	Name string `json:"name" gorm:"not null;"`
	Memo string `json:"memo" gorm:"not null;default:'';"`
}

type AdminRoleMenu struct {
	Id  uint `json:"id" gorm:"primaryKey"`
	Rid uint `json:"rid" gorm:"not null"`
	Mid uint `json:"mid" gorm:"not null"`
	Bid uint `json:"bid" gorm:"not null;"`
}
